/**
 * 
 */
package org.jenkon.filter;

import java.lang.annotation.Annotation;
import java.lang.reflect.Method;

/**
 * @author Jens Konopka
 * 
 */
public class MethodAnnotationFilter extends AbstractAnnotationFilter<Method> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2193138924636036173L;

	/**
	 * @param annotation {@link Class} of the {@link Annotation}
	 */
	public MethodAnnotationFilter(final Class<? extends Annotation> annotation) {
		super(annotation);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.jenkon.filter.Filter#accept(java.lang.Object)
	 */
	public boolean accept(final Method method) {
		return method.isAnnotationPresent(getAnnotation());
	}

}
